.class Lcom/instagram/android/fragment/cr;
.super Ljava/lang/Object;
.source "FindFriendsFragment.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/instagram/android/fragment/cq;


# direct methods
.method constructor <init>(Lcom/instagram/android/fragment/cq;)V
    .locals 0
    .parameter

    .prologue
    .line 91
    iput-object p1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 95
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/d/b;

    .line 96
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->find_friends_item_from_my_contact_list:I

    if-ne v1, v2, :cond_1

    .line 97
    iget-object v0, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-static {v0}, Lcom/instagram/android/fragment/cq;->a(Lcom/instagram/android/fragment/cq;)V

    .line 138
    :cond_0
    :goto_0
    return-void

    .line 99
    :cond_1
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->find_friends_item_search_names_and_usernames:I

    if-ne v1, v2, :cond_2

    .line 100
    new-instance v0, Lcom/instagram/e/b/a/a;

    iget-object v1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-virtual {v1}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v1, Lcom/instagram/android/fragment/aj;

    invoke-direct {v1}, Lcom/instagram/android/fragment/aj;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto :goto_0

    .line 102
    :cond_2
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->find_friends_item_suggested_users:I

    if-ne v1, v2, :cond_3

    .line 103
    new-instance v0, Lcom/instagram/e/b/a/a;

    iget-object v1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-virtual {v1}, Lcom/instagram/android/fragment/cq;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v1, Lcom/instagram/android/fragment/gk;

    invoke-direct {v1}, Lcom/instagram/android/fragment/gk;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    goto :goto_0

    .line 105
    :cond_3
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->find_friends_item_vkontakte_friends:I

    if-ne v1, v2, :cond_5

    .line 106
    invoke-static {}, Lcom/instagram/android/w/a;->a()Lcom/instagram/android/w/a;

    move-result-object v0

    .line 107
    if-eqz v0, :cond_4

    .line 108
    iget-object v1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-virtual {v0}, Lcom/instagram/android/w/a;->f()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/instagram/android/fragment/cq;->a(Lcom/instagram/android/fragment/cq;Ljava/lang/String;)V

    goto :goto_0

    .line 110
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    const/4 v1, 0x5

    invoke-static {v0, v1}, Lcom/instagram/android/activity/VkontakteAuthActivity;->a(Landroid/support/v4/app/Fragment;I)V

    goto :goto_0

    .line 114
    :cond_5
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v1

    sget v2, Lcom/facebook/ba;->find_friends_item_facebook_friends:I

    if-ne v1, v2, :cond_7

    .line 115
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 116
    invoke-virtual {v0}, Lcom/facebook/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_6

    .line 118
    iget-object v1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-virtual {v0}, Lcom/facebook/a/b;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/instagram/android/fragment/cq;->b(Lcom/instagram/android/fragment/cq;Ljava/lang/String;)V

    goto :goto_0

    .line 121
    :cond_6
    iget-object v1, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    sget-object v2, Lcom/instagram/android/g/i;->a:[Ljava/lang/String;

    iget-object v3, p0, Lcom/instagram/android/fragment/cr;->a:Lcom/instagram/android/fragment/cq;

    invoke-static {v3}, Lcom/instagram/android/fragment/cq;->b(Lcom/instagram/android/fragment/cq;)Lcom/instagram/android/fragment/cx;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/facebook/a/b;->a(Landroid/support/v4/app/Fragment;[Ljava/lang/String;Lcom/facebook/a/e;)V

    goto/16 :goto_0

    .line 127
    :cond_7
    invoke-virtual {v0}, Lcom/instagram/ui/d/b;->d()I

    move-result v0

    sget v1, Lcom/facebook/ba;->find_friends_item_twitter_friends:I

    if-ne v0, v1, :cond_0

    goto/16 :goto_0
.end method
